home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2000 February / Macworld (2000-02).dmg / Shareware World / Utilities / Business / Ch-Ching 2.6.7r5 / store / customerconfirm.lasso < prev    next >
Text File  |  1999-08-18  |  2KB  |  51 lines

  1. [include:'includes/name.lasso']
  2. [include:'includes/nav.lasso']
  3.  
  4. [if: ((lasso_currentaction) == 'update') || ((lasso_currentaction) == 'add')]
  5.     [value_list:'custShippingMethod']
  6.         [variable_set:'compare'=(valuelistitem)]
  7.     [/value_list]
  8.     [if:String_IsNumeric:(String_Remove:start_position=1, end_position=(Math_Sub:String_Length:variable:'compare',1), (variable:'compare'))]
  9.         [include:'html/customerconfirm.html']                        
  10.     [else]
  11.         [include:'html/shippingconfirm.html']
  12.     [/if]
  13. [else]
  14.     [if:((form_param:'id') != '') && (form_param:'password' != '')]
  15.         [inline:database=(var:'dtb'), layout='www_customers', op='eq', 'custPassword'=(form_param:'password', Raw), op='eq', 'custCustomerID'=(form_param:'id', Raw), search]
  16.             [if:found_count=='0']
  17.                 [inline:database=(variable:'dtb'), layout='www_checkout', show]
  18.                     [value_list:'custShippingMethod']
  19.                         [variable_set:'compare'=(valuelistitem)]
  20.                     [/value_list]
  21.                     [if:String_IsNumeric:(String_Remove:start_position=1, end_position=(Math_Sub:String_Length:variable:'compare',1), (variable:'compare'))]
  22.                         [include:'html/customernotfound.html']                        
  23.                     [else]
  24.                         [include:'html/shippingnotfound.html']
  25.                     [/if]
  26.                 [/inline]
  27.             [else]
  28.                 [value_list:'custShippingMethod']
  29.                     [variable_set:'compare'=(valuelistitem)]
  30.                 [/value_list]
  31.                 [if:String_IsNumeric:(String_Remove:start_position=1, end_position=(Math_Sub:String_Length:variable:'compare',1), (variable:'compare'))]
  32.                     [include:'html/customerconfirm.html']                        
  33.                 [else]
  34.                     [include:'html/shippingconfirm.html']
  35.                 [/if]
  36.             [/if]
  37.         [/inline]            
  38.     [else]
  39.         [inline:database=(variable:'dtb'), layout='www_checkout', show]
  40.             [value_list:'custShippingMethod']
  41.                 [variable_set:'compare'=(valuelistitem)]
  42.             [/value_list]
  43.             [if:String_IsNumeric:(String_Remove:start_position=1, end_position=(Math_Sub:String_Length:variable:'compare',1), (variable:'compare'))]
  44.                 [include:'html/customernotfound.html']                        
  45.             [else]
  46.                 [include:'html/shippingnotfound.html']
  47.             [/if]
  48.         [/inline]
  49.     [/if]
  50. [/if]
  51.